﻿namespace SensorCollection.AppCode
{
    /// <summary>
    /// 发电机组接口数据JSON
    /// </summary>
    public class AlternatorDevicePostModel
    {
        /// <summary>
        /// 客户端软件信息
        /// </summary>
        public Dev dev { get; set; }
        /// <summary>
        /// 机组
        /// </summary>
        public Ctr ctr { get; set; }
        /// <summary>
        /// 控制柜
        /// </summary>
        public Cab cab { get; set; }
        /// <summary>
        /// 功率
        /// </summary>
        public Eng eng { get; set; }
        /// <summary>
        /// 母线
        /// </summary>
        public Bus bus { get; set; }
        /// <summary>
        /// 发电机
        /// </summary>
        public Gen gen { get; set; }
        /// <summary>
        /// 电流
        /// </summary>
        public Cur cur { get; set; }
        /// <summary>
        /// 励磁
        /// </summary>
        public Ect ect { get; set; }
        /// <summary>
        /// 温度
        /// </summary>
        public Temperature temperature { get; set; }
    }
    /// <summary>
    /// 软件信息
    /// </summary>
    public class Dev
    {
        /// <summary>
        /// 软件版本
        /// </summary>
        public string soft_ver { get; set; }
        /// <summary>
        /// 对应的设备编号
        /// </summary>
        public string src { get; set; }
        /// <summary>
        /// 代理设备
        /// </summary>
        public string hub { get; set; }
    }
    /// <summary>
    /// 机组情况
    /// </summary>
    public class Ctr
    {
        /// <summary>
        /// CommState
        /// </summary>
        public string mode { get; set; }
        /// <summary>
        /// TurbCtrState
        /// </summary>
        public string turb { get; set; }
        /// <summary>
        /// ExcitCtrState
        /// </summary>
        public string excit { get; set; }
        /// <summary>
        /// wrGridMode
        /// </summary>
        public string grid { get; set; }
        /// <summary>
        /// 报警
        /// </summary>
        public string alarm { get; set; }
    }
    /// <summary>
    ///  控制柜
    /// </summary>
    public class Cab
    {
        /// <summary>
        /// 电压,单位：V
        /// </summary>
        public string vol { get; set; }
    }
    /// <summary>
    /// 功率
    /// </summary>
    public class Eng
    {
        /// <summary>
        /// 有功,单位： kw
        /// </summary>
        public string p { get; set; }
        /// <summary>
        /// 无功,单位： kw
        /// </summary>
        public string q { get; set; }
    }
    /// <summary>
    /// 母线
    /// </summary>
    public class Bus
    {
        /// <summary>
        /// 母线电压,单位：V
        /// </summary>
        public string v { get; set; }
        /// <summary>
        /// 母线AB线,电流：A
        /// </summary>
        public string ab { get; set; }
        /// <summary>
        /// 母线BC线,电流：A
        /// </summary>
        public string bc { get; set; }
        /// <summary>
        /// 母线CA线,电流：A
        /// </summary>
        public string ca { get; set; }
        /// <summary>
        /// 母线三相不平衡度,%
        /// </summary>
        public string ub { get; set; }
        /// <summary>
        /// 母线频率,单位：hz
        /// </summary>
        public string f { get; set; }
    }
    /// <summary>
    /// 发电机
    /// </summary>
    public class Gen
    {
        /// <summary>
        /// 发电机电压,单位：V
        /// </summary>
        public string v { get; set; }
        /// <summary>
        /// 发电机频率,单位：hz
        /// </summary>
        public string f { get; set; }
    }
    /// <summary>
    /// 电流
    /// </summary>
    public class Cur
    {
        /// <summary>
        /// A相电流,单位：A
        /// </summary>
        public string ha { get; set; }
        /// <summary>
        /// B相电流,单位：A
        /// </summary>
        public string hb { get; set; }
        /// <summary>
        /// C相电流,单位：A
        /// </summary>
        public string hc { get; set; }
        /// <summary>
        /// 三相电流不平衡度
        /// </summary>
        public string hub { get; set; }
    }
    /// <summary>
    /// 励磁
    /// </summary>
    public class Ect
    {
        /// <summary>
        /// 励磁电压,单位：V
        /// </summary>
        public string vol { get; set; }
        /// <summary>
        /// 励磁电流,单位：A
        /// </summary>
        public string cur { get; set; }
    }
    /// <summary>
    /// 温度
    /// </summary>
    public class Temperature
    {
        public string 温度1 { get; set; }
        public string 温度2 { get; set; }
        public string 温度3 { get; set; }
        public string 温度4 { get; set; }
        public string 温度5 { get; set; }
        public string 温度6 { get; set; }
        public string 温度7 { get; set; }
        public string 温度8 { get; set; }
        public string 温度9 { get; set; }
        public string 温度10 { get; set; }
        public string 温度11 { get; set; }
        public string 温度12 { get; set; }
        public string 温度13 { get; set; }
        public string 温度14 { get; set; }
        public string 温度15 { get; set; }
        public string 温度16 { get; set; }
    }

}
